#include "utils.h"
#include <stdint.h>
//#include "my_app_config.h"

static uint8_t m_logBuff[1024];

void LOG_SEND(uint8_t* pData, uint16_t len)
{
    if (len / 3 >= sizeof(m_logBuff))
    {
        LOG_DEBUG("send->too long...\n");
        return;
    }
    
    for (uint16_t i = 0; i < len; i++)
    {
        sprintf((char*)&m_logBuff[i * 3], "%02X ", pData[i]);
    }
    LOG_DEBUG("send->%s\n", m_logBuff);
}

void LOG_RECV(uint8_t* pData, uint16_t len)
{
    if (len / 3 >= sizeof(m_logBuff))
    {
        LOG_DEBUG("recv->too long...\n");
        return;
    }
    
    for (uint16_t i = 0; i < len; i++)
    {
        sprintf((char*)&m_logBuff[i * 3], "%02X ", pData[i]);
    }
    LOG_DEBUG("recv->%s\n", m_logBuff);
}


